<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" data-rule="required" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">英文{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title_en" class="form-control" name="row[title_en]" type="text">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-path" data-rule="required" class="form-control" size="50" name="row[path]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-path" class="btn btn-danger faupload" data-input-id="c-path" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-path"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-path" class="btn btn-primary fachoose" data-input-id="c-path" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-path"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-path"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">跳转页面:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" class="form-control selectpicker" name="row[type]">

                <option value="-1" selected>不跳转</option>
                <option value="0" >banner详细内容</option>
                <option value="1" >至某个供需</option>
                <option value="3" >至某新闻文章</option>

            </select>

        </div>
    </div>

    <div class="form-group need-html" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">供需:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_id" data-source="need/index" data-params='' data-field="title" class="form-control selectpage" name="row[a_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group article-html" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">新闻文章:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_id1" data-source="article/index" data-params='' data-field="title" class="form-control selectpage" name="row[a_id1]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">详细内容:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-intro" class="form-control editor" rows="20" name="row[intro]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">英文详细内容:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-intro_en" class="form-control editor" rows="20" name="row[intro_en]" cols="50"></textarea>
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url" class="form-control" name="row[url]" type="text">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Displayorder')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-displayorder" class="form-control" name="row[displayorder]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
